<!DOCTYPE html>
<html lang="en">
<head>
   
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>22001010608滕旋州</title>
    <link rel="stylesheet" href="./index2.css">
    <link rel="stylesheet" href="./font/iconfont.css">
    <link rel="stylesheet" href="./tengxuanzhou.css">
    <link rel="stylesheet" href="./font_129/iconfont.css">
    
    
    
</head>
<body>
    
    <div class="box">
        <div class="sidex">
                <div class="cad"><a href="#">手机虎扑</a></div>
                <div class="line"></div>
                <div class="cad"><a href="#">下载虎扑APP</a></div>
                <div class="line"></div>
                <div class="cad"><a href="#">加入虎扑</a></div>
            
            
            <div class="right" >
                <span>欢迎加入虎扑    请先</span>
                <div class="box4"><a href="#">注册</a></div>
                <span>或</span>
                <div class="box4"><a href="./login.html">登录</a></div>

            </div>
            

            

        </div>
        <div class="xidex">
            <div class="box2"></div>
            <div class="box2"></div>
            <div class="box3"><a href="">虎扑首页</a></div>
            <div class="box3"><a href="#">NBA</a></div>
            <div class="box3"><a href="#">CBA</a></div>
            <div class="box3"><a href="#">足球</a></div>
            <div class="box3"><a href="#">步行街</a></div>
            <div class="box3"><a href="#">社区</a></div>
            <div class="box3"><a href="#">电竞</a></div>
            <div class="box2"></div>
            
            
        </div>
    </div>
    <nav class="erjikuang">
        <ul class="erjikuang1">
            <li class="erjikuang2"><a href="#" class="active">社区首页</a></li>
            <li class="erjikuang2"><a href="#">NBA版</a></li>
            <li class="erjikuang2"><a href="#">电竞版</a></li>
            <li class="erjikuang2"><a href="#">英雄联盟版</a></li>
            <li class="erjikuang2"><a href="#">国际足球版</a></li>
            <li class="erjikuang2"><a href="#">中国足球版</a></li>
            <li class="erjikuang2"><a href="#">影视娱乐版</a></li>
            <li class="erjikuang2"><a href="#">装备版</a></li>
            <li class="erjikuang2"><a href="#">CBA版</a></li>
            <li class="erjikuang2"><a href="#">数码版</a></li>
            <div class="search-bar">
                <input type="text" placeholder="输入关键词">
            </div>
        </ul>
    </nav>

    <div class="erjibeijing">
        <div class="erjineirongb">
            <div class="erjineirongl">
                <div class="index_1">
                    <a class="index_1a" href="#">社区</a>
                    <i class="index_1i">>></i>
                    <a class="index_1a" href="#">NBA</a>
                    <i class="index_1i">>></i>
                    <a class="index_1a" href="#">篮球资讯</a>
                    <i class="index_1i">>></i>
                    <a class="index_1a" href="#">[流言板]今日不敌灰...</a>
                    
                </div>
                <div class="index_2">
                    <h1 class="index_2h1">[流言板]今日不敌灰熊赛后，绿军官方发推：我们团结一致，没有放弃</h1>
                    <span class="index_2sp" >\12回复</span>
                    <span class="index_2sp" >\6亮</span>
                    <span class="index_2sp">\1240浏览</span>
                </div>
                <div class="index3" style="display: flex;flex-wrap: wrap;">
                    <div class="index3l" style="width: 6%;height: 50px;">
                        
                        <div><img class="index3i"  src="./img/22.png@150h_150w_2e" alt=""></div>
                    </div>
                    <div class="index3r" >
                        <div class="index3r1" >
                            <a href="#"  style="font-size: 14px;color: #338fff;">虎扑篮球资讯</a>
                            <span style="font-size: 14px;">(1280级)</span>
                            <span style="padding-left: 2px;padding-right: 2px; font-size: 10px;border-radius: 5px;background-color: #92999f;">楼主</span>
                            <span style="font-size: 14px;">2024-12-08 16:08:00</span>
                            <span style="font-size: 14px;">发布于上海</span>

                        </div> 
                        <div style="width: 100%;height: 25px;">
                            <span style="font-size: 14px;">[流言板]今日不敌灰熊赛后，绿军官方发推：我们团结一致，没有放弃</span>
                            <span style="font-size: 12px;color: #92999f;">由 虎扑篮球资讯 发表在 篮球资讯</span>
                        </div>                   
                    </div>
                    <div style="width: 92%;height: 620px;margin-left: 5%;margin-top: -100px;">
                        <img style="width: 98%;height: 500px;"   src="./img/23.webp" alt="">
                        
                    </div>
                    <div style="width: 92%;height: 120px;margin-top: -20px;margin-left: 6%;margin-top: -225px;">
                        <p style="width: 92%;height: 30px; font-size: 14px;margin-top: 14px;">虎扑12月08日讯 今天NBA常规赛灰熊客场迎战凯尔特人的比赛已经结束。全场战罢，灰熊以127-121战胜凯尔特人。</p>
                        <p style="width: 92%;height: 30px; font-size: 14px;margin-top: 14px;">本场比赛，绿军上半场落后12分，第三节开始追回部分差距，可惜最后还是未能完成或放翻盘。</p>
                        <p style="width: 92%;height: 30px; font-size: 14px;margin-top: 14px;">赛后凯尔特人官方发推：“我们团结一致，没有放过任何机会。我们没有放弃。九天以来的第六场比赛对我们来说是一次巨大的挑战，但我们没有在坚韧不拔的放眼战面前退缩。”</p>
                        <p class="source" style="width: 92%;height: 30px; font-size: 12px;margin-top: 18px;">来源：X</p>
                    </div>
                    <div>
                        <div class="button-group1">
                            <div onclick="handleClick(this, 'likeCount')">
                                <span class="iconfont icon-tuijian"></span>
                                推荐 (<span id="likeCount">40</span>)
                            </div>
                            <div onclick="handleClick(this, 'commentCount')">
                                <span class="iconfont icon-pinglun"></span>
                                评论 (<span id="commentCount">81</span>)
                            </div>
                            <div onclick="handleToggle(this)">
                                <span class="iconfont icon-shoucang"></span>
                                收藏
                            </div>
                            <div onclick="handleShare()">
                                <span class="iconfont icon-fenxiang"></span>
                                分享
                            </div>
                            <div onclick="handleReport()">
                                <span class="iconfont icon-jubao"></span>
                                举报
                            </div>
                            <div>
                                <span class="iconfont icon-zhikanlouzhu"></span>
                                只看楼主
                            </div>
                        </div>
                    
                       
                    </div>
                    
                </div>
                
            </div>
            <div class="erjineirongr">
                <div class="lanqiurebang">
                    <div class="remenhuati">
                        <div class="remen1" ></div>
                        <span class="remen2">篮球热榜</span>
                    </div>
                    <div class="lanqiubangxiangq">
                        <div class="lanqiubangxiangq2">1</div>
                        <div class="lanqiubangxiangq3"><a href="">[流言板]只扣十佳球！莫兰特迎着波尔津吉斯，上演滞空拉杆折叠背扣</a></div>
                    </div>
                    <div class="lanqiubangxiangq">
                        <div class="lanqiubangxiangq7">2</div>
                        <div class="lanqiubangxiangq3"><a href="">[流言板]无力回天！约基奇全场38投22中，空砍56分16篮板8助攻</a></div>
                    </div>
                    <div class="lanqiubangxiangq">
                        <div class="lanqiubangxiangq4">3</div>
                        <div class="lanqiubangxiangq3"><a href="">[流言板]约基奇：在我们国家表现糟糕就会降薪，也许我们需要这么做</a></div>
                    </div>
                    <div class="lanqiubangxiangq">
                        <div class="lanqiubangxiangq5">4</div>
                        <div class="lanqiubangxiangq3"><a href="">[流言板]因媒体在场伦纳德暂停投篮训练，在媒体停止拍摄后继续进行</a></div>
                    </div>
                    <div class="lanqiubangxiangq">
                        <div class="lanqiubangxiangq6">5</div>
                        <div class="lanqiubangxiangq3"><a href="">[流言板]你怎么看？多尔特凶悍防守致莺歌扭伤离场，还被吹进攻犯规</a></div>
                    </div>
                    <div class="lanqiubangxiangq">
                        <div class="lanqiubangxiangq6">6</div>
                        <div class="lanqiubangxiangq3"><a href="">[流言板]只扣十佳球！莫兰特迎着波尔津吉斯，上演滞空拉杆折叠背扣</a></div>
                    </div>
                    <div class="lanqiubangxiangq">
                        <div class="lanqiubangxiangq6">7</div>
                        <div class="lanqiubangxiangq3"><a href="">[流言板]只扣十佳球！莫兰特迎着波尔津吉斯，上演滞空拉杆折叠背扣</a></div>
                    </div>
                </div>




                <div class="container">
                    <!-- 热门游戏 -->
                    <div>
                        <div class="title">热门游戏-即点即玩</div>
                        <div class="game-list" id="game-list">
                            <!-- 动态渲染游戏项 -->
                        </div>
                    </div>
                    <!-- 下载虎扑App -->
                    <div class="qr-section">
                        <!-- <img src="./屏幕截图 2024-12-10 144314.png" alt="虎扑二维码"> -->
                        <div class="download-title">下载虎扑App</div>
                        <div class="platforms">
                            <img src="./img/OIP.jpg" alt="iPhone">
                            <img src="./img/OIP.jpg" alt="Android">
                            <img src="./img/OIP.jpg" alt="iPad">
                        </div>
                        <div class="tagline">世界是个竞技场</div>
                    </div>
                </div>
                
            </div>
        </div>
    </div>

    

    <script>
       
        const links = document.querySelectorAll("nav ul li a");
        links.forEach(link => {
            link.addEventListener("click", function(event) {
                
                links.forEach(item => item.classList.remove("active"));
               
                this.classList.add("active");
            });
        });


        function handleClick(element, countId) {
            // 更新计数器
            const countElement = document.getElementById(countId);
            let count = parseInt(countElement.textContent, 10);
            count++;
            countElement.textContent = count;

            // 添加交互效果
            element.classList.add("active");
            setTimeout(() => {
                element.classList.remove("active");
            }, 200);
        }

        function handleToggle(element) {
            // 切换收藏状态
            if (element.classList.contains("active")) {
                element.classList.remove("active");
            } else {
                element.classList.add("active");
            }
        }

        function handleShare() {
            // 模拟分享逻辑
            alert("分享成功！");
        }

        function handleReport() {
            // 模拟举报逻辑
            alert("举报已提交！");
        }

        // 模拟游戏数据
        const gameData = [
            {
                title: "无需下载，足球经理模式一键即玩",
                source: "足球文明"
            },
            {
                title: "《NBA英雄》教练系统上线啦！我选好了，看看的你的",
                source: "NBA英雄"
            }
        ];

        // 动态渲染游戏列表
        const gameList = document.getElementById("game-list");
        gameData.forEach(game => {
            const gameItem = document.createElement("div");
            gameItem.className = "game-item";
            gameItem.innerHTML = `
                <span class="game-title">${game.title}</span>
                <span class="game-source">${game.source}</span>
            `;
            gameList.appendChild(gameItem);
        });
                      
    </script>
</body>
</html>